package com.ruoyi.project.charging.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.charging.mapper.CChargingBitMapper;
import com.ruoyi.project.charging.domain.CChargingBit;
import com.ruoyi.project.charging.service.ICChargingBitService;

/**
 * 控制字位数据Service业务层处理
 * 
 * @author Yaoxuan Mo
 * @date 2025-07-28
 */
@Service
public class CChargingBitServiceImpl implements ICChargingBitService 
{
    @Autowired
    private CChargingBitMapper cChargingBitMapper;

    /**
     * 查询控制字位数据
     * 
     * @param bitId 控制字位数据主键
     * @return 控制字位数据
     */
    @Override
    public CChargingBit selectCChargingBitByBitId(Long bitId)
    {
        return cChargingBitMapper.selectCChargingBitByBitId(bitId);
    }

    /**
     * 查询控制字位数据列表
     * 
     * @param cChargingBit 控制字位数据
     * @return 控制字位数据
     */
    @Override
    public List<CChargingBit> selectCChargingBitList(CChargingBit cChargingBit)
    {
        return cChargingBitMapper.selectCChargingBitList(cChargingBit);
    }

    /**
     * 新增控制字位数据
     * 
     * @param cChargingBit 控制字位数据
     * @return 结果
     */
    @Override
    public int insertCChargingBit(CChargingBit cChargingBit)
    {
        return cChargingBitMapper.insertCChargingBit(cChargingBit);
    }

    /**
     * 修改控制字位数据
     * 
     * @param cChargingBit 控制字位数据
     * @return 结果
     */
    @Override
    public int updateCChargingBit(CChargingBit cChargingBit)
    {
        return cChargingBitMapper.updateCChargingBit(cChargingBit);
    }

    /**
     * 批量删除控制字位数据
     * 
     * @param bitIds 需要删除的控制字位数据主键
     * @return 结果
     */
    @Override
    public int deleteCChargingBitByBitIds(Long[] bitIds)
    {
        return cChargingBitMapper.deleteCChargingBitByBitIds(bitIds);
    }

    /**
     * 删除控制字位数据信息
     * 
     * @param bitId 控制字位数据主键
     * @return 结果
     */
    @Override
    public int deleteCChargingBitByBitId(Long bitId)
    {
        return cChargingBitMapper.deleteCChargingBitByBitId(bitId);
    }
}
